package com.xbongbong.saas.domain.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 
 * tb_saas_product_unit_rate
 * 
 * @author lee
 */
@Getter
@Setter
@ToString
public class ProductUnitRateEntity implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 
     */
    private String corpid;

    /**
     * 单位组id
     */
    private Long groupId;

    /**
     * 单位名称
     */
    private String name;

    /**
     * 与基础单位比率
     */
    private Double rate;

    /**
     * 是否是基础单位
     */
    private Integer isBase;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 
     */
    private Long addTime;

    /**
     * 
     */
    private Long updateTime;

    /**
     * 
     */
    private Integer del;

    public ProductUnitRateEntity(String corpid, Long groupId, String name, Double rate, Integer isBase, Integer sort, Long addTime, Long updateTime, Integer del) {
        this.corpid = corpid;
        this.groupId = groupId;
        this.name = name;
        this.rate = rate;
        this.isBase = isBase;
        this.sort = sort;
        this.addTime = addTime;
        this.updateTime = updateTime;
        this.del = del;
    }

    public ProductUnitRateEntity() {
    }

    public ProductUnitRateEntity(Long id, String name, Double rate, Long updateTime) {
        this.id = id;
        this.name = name;
        this.rate = rate;
        this.updateTime = updateTime;
    }

    private static final long serialVersionUID = 1L;
}